<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<style type="text/css">
.transit{

	width:100px;
	height:100px;
	background-color:orange;
	transition:3s;
}

.transit:hover{
	/*background-color:red;*/
	margin-left:500px;
}

.aminate{
	width:100px;
	height:100px;
	background-color:yellowgreen;
	animation:henry 3s;
}

@keyframes henry{
	from {margin-left:10px;}
	to {margin-left:100px;}
};
</style>
<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
<body>

<script type="text/javascript">
$(function(){
	var data='{"msg":"操作成功","jcInfo":{"msg":"查询成功","code":0,"data":[{"jcdm":1,"org_id":1,"sjlb":"冬令制","jcskkssj":"08:00:00","jcskjssj":"08:45:00","deltag":false,"remark":"1","id":126,"jcmc":"第一节"},{"jcdm":2,"org_id":1,"sjlb":"冬令制","jcskkssj":"09:00:00","jcskjssj":"09:45:00","deltag":false,"remark":"2","id":127,"jcmc":"第二节"},{"jcdm":3,"org_id":1,"sjlb":"冬令制","jcskkssj":"10:00:00","jcskjssj":"10:45:00","deltag":false,"remark":"3","id":128,"jcmc":"第三节"},{"jcdm":4,"org_id":1,"sjlb":"冬令制","jcskkssj":"11:00:00","jcskjssj":"12:00:00","deltag":false,"remark":"4","id":129,"jcmc":"第四节"},{"jcdm":5,"org_id":1,"sjlb":"冬令制","jcskkssj":"14:00:00","jcskjssj":"14:45:00","deltag":false,"remark":"5","id":130,"jcmc":"第五节"},{"jcdm":6,"org_id":1,"sjlb":"冬令制","jcskkssj":"15:00:00","jcskjssj":"15:45:00","deltag":false,"remark":"6","id":131,"jcmc":"第六节"},{"jcdm":7,"org_id":1,"sjlb":"冬令制","jcskkssj":"16:00:00","jcskjssj":"16:45:00","deltag":false,"remark":"7","id":132,"jcmc":"第七节"}],"count":7},"code":0,"kcInfo":{"msg":"查询成功","code":0,"data":[{"skcdmc":"信息1班","skrq":"2018-12-20","kcdm":"SX2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"1","jxrwid":56335,"kcmc":"数学","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-20","kcdm":"YW2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"2","jxrwid":56334,"kcmc":"语文","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-20","kcdm":"10010000010","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"3","jxrwid":54334,"kcmc":"体育","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-20","kcdm":"ZX3","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"4","jxrwid":56346,"kcmc":"自习","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-20","kcdm":"YW2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"5","jxrwid":56334,"kcmc":"语文","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-20","kcdm":"PD","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"6","jxrwid":56337,"kcmc":"品德","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-20","kcdm":"BH3","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"7","jxrwid":56345,"kcmc":"班会","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-21","kcdm":"SX2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"1","jxrwid":56335,"kcmc":"数学","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-21","kcdm":"YW2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"2","jxrwid":56334,"kcmc":"语文","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-21","kcdm":"ZX3","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"3","jxrwid":56346,"kcmc":"自习","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-21","kcdm":"YW2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"4","jxrwid":56334,"kcmc":"语文","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-21","kcdm":"YL4","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"5","jxrwid":56336,"kcmc":"音乐","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-21","kcdm":"10020003640","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"6","jxrwid":52538,"kcmc":"美术","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-24","kcdm":"SX2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"1","jxrwid":56335,"kcmc":"数学","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-24","kcdm":"YW2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"2","jxrwid":56334,"kcmc":"语文","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-24","kcdm":"PD","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"3","jxrwid":56337,"kcmc":"品德","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-24","kcdm":"DF","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"4","jxrwid":56347,"kcmc":"地方","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-24","kcdm":"DF","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"5","jxrwid":56347,"kcmc":"地方","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-24","kcdm":"ZX3","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"6","jxrwid":56346,"kcmc":"自习","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-24","kcdm":"TH","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"7","jxrwid":56349,"kcmc":"体活","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-25","kcdm":"ZW","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"1","jxrwid":56344,"kcmc":"作文","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-25","kcdm":"ZW","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"2","jxrwid":56344,"kcmc":"作文","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-25","kcdm":"10010000010","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"3","jxrwid":54334,"kcmc":"体育","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-25","kcdm":"ZH","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"4","jxrwid":56341,"kcmc":"综合","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-25","kcdm":"PD","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"5","jxrwid":56337,"kcmc":"品德","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-25","kcdm":"KX4","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"6","jxrwid":56338,"kcmc":"科学","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-25","kcdm":"TH","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"7","jxrwid":56349,"kcmc":"体活","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-26","kcdm":"SX2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"1","jxrwid":56335,"kcmc":"数学","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-26","kcdm":"YW2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"2","jxrwid":56334,"kcmc":"语文","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-26","kcdm":"YL4","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"3","jxrwid":56336,"kcmc":"音乐","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-26","kcdm":"10020003640","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"4","jxrwid":52538,"kcmc":"美术","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-26","kcdm":"XZ3","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"5","jxrwid":56340,"kcmc":"写字","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-26","kcdm":"ZX3","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"6","jxrwid":56346,"kcmc":"自习","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-26","kcdm":"XB2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"7","jxrwid":56348,"kcmc":"校本","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-27","kcdm":"SX2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"1","jxrwid":56335,"kcmc":"数学","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-27","kcdm":"YW2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"2","jxrwid":56334,"kcmc":"语文","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-27","kcdm":"10010000010","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"3","jxrwid":54334,"kcmc":"体育","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-27","kcdm":"ZX3","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"4","jxrwid":56346,"kcmc":"自习","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-27","kcdm":"YW2","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"5","jxrwid":56334,"kcmc":"语文","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-27","kcdm":"PD","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"6","jxrwid":56337,"kcmc":"品德","skcddm":"110110"},{"skcdmc":"信息1班","skrq":"2018-12-27","kcdm":"BH3","skjs":"xxxxxx12","skbj":"xxbj2","skjsxm":"xx2","skbjmc":"xx二班","jc":"7","jxrwid":56345,"kcmc":"班会","skcddm":"110110"}],"count":41}}';

	data=$.parseJSON(data);
	var courseSet=data.kcInfo.data;
	var monSet=[];
	var tueSet=[];
	var wenSet=[];
	var thiSet=[];
	var friSet=[];
	var satSet=[];
	var sunSet=[];
	
	
	var milMon=Date.parse(new Date(courseSet[0].skrq));
	var milTue=milMon+24*60*60*1000;
	var milWen=milMon+(24*60*60*1000)*2;
	var milThi=milMon+(24*60*60*1000)*3;
	var milFri=milMon+(24*60*60*1000)*4;
	var milSat=milMon+(24*60*60*1000)*5;
	var milSun=milMon+(24*60*60*1000)*6;
	
	var mon=new Date(milMon).Format('yyyy-MM-dd');
	var tue=new Date(milTue).Format('yyyy-MM-dd');
	var wen=new Date(milWen).Format('yyyy-MM-dd');
	var thi=new Date(milThi).Format('yyyy-MM-dd');
	var fri=new Date(milFri).Format('yyyy-MM-dd');
	var sat=new Date(milSat).Format('yyyy-MM-dd');
	var sun=new Date(milSun).Format('yyyy-MM-dd');

	console.log(mon,tue,wen,thi,fri,sat,sun)
	
	courseSet.forEach(function(dom,i){
		console.log(new Date(dom.skrq).getDay())
		
		// if(mon==dom.skrq){
		// 	monSet.push(dom)
		// }else if(dom.skrq==tue){
		// 	tueSet.push(dom);
		// }else if(dom.skrq==wen){
		// 	wenSet.push(dom);
		// }else if(dom.skrq==thi){
		// 	thiSet.push(dom);
		// }else if(dom.skrq==fri){
		// 	friSet.push(dom);
		// }else if(dom.skrq==sat){
		// 	satSet.push(dom);
		// }else if(dom.skrq==sun){
		// 	sunSet.push(dom);
		// }
	})
	
	//console.log(monSet,tueSet,wenSet,thiSet,friSet,satSet,sunSet)
})

Date.prototype.Format = function (fmt) { 
            var o = {
                "M+": this.getMonth() + 1, //月份 
                "d+": this.getDate(), //日 
                "h+": this.getHours(), //小时 
                "m+": this.getMinutes(), //分 
                "s+": this.getSeconds(), //秒 
                "q+": Math.floor((this.getMonth() + 3) / 3), //季度 
                "S": this.getMilliseconds() //毫秒 
            };
            if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
            for (var k in o)
            if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
            return fmt;
        }
</script>	
</body>
</html>